package com.wrs.business;

//used by both DAOs	
public class DataUnavailableException extends RuntimeException {
	private static final long serialVersionUID = 1L;

	//constructor reason
	public DataUnavailableException(Exception reason){
		super(reason);
	}
	
	//constructor for string
	public DataUnavailableException(String reason){
		super(reason);
	}
	
	//constructor empty
	public DataUnavailableException() {
		this("Could not connect to data store");
	}

	@Override
	public String getMessage() {
		return "DataUnavailableException: " + super.getMessage();
	}

}
